package pattern.birdge

/**
 * 第一层抽象
 */
abstract class Abstraction {

  protected var implementor:Implementor
  def operation(): Unit ={
    println("from Abstraction!!!!")
    implementor.operationImpl()
  }

  def setImplementor(implementor: Implementor): Unit ={
    this.implementor=implementor
  }
}
